import React from 'react'
import '@/style/app'
import Test from '@/components/test'
import {Link} from 'react-router-dom'
export default class App extends React.Component{
    constructor(){
        super();
        this.state={
            msg : '消息'
        }
    }
    componentDidMount(){

    }
    handleClick(a,e){
        console.log(this,a,e)
    }
    render(){
        return <div className='app' onClick={this.handleClick.bind(this,'adad')}>
            213131
            <Link to='/Test1' >test1</Link>
            <Test  data={this.state.msg} change={(msg)=>{this.setState({msg})}}/>
        </div>
    }
}



// export default function App(){
//     function handleClick(a,e){
//         console.log(this,a,e)
//     }
//     return <div className='app' onClick={handleClick.bind(this,'adad')}>213131</div>
// }

